package top.blacknota.utils;

import org.mindrot.jbcrypt.BCrypt;

/**
 * Created by 撒哈拉来的企鹅 on 2018-2-8.
 */
public class LpUtil {
    public static String hashpw(String password) {
        return BCrypt.hashpw(password,BCrypt.gensalt());
    }
    public static boolean checkpw(String password, String hashed) {
        return BCrypt.checkpw(password,hashed);
    }
}
